package com.shenfc.fxzj.service.impl;

import com.shenfc.fxzj.domain.SysMenu;
import com.shenfc.fxzj.mapper.SysMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shenfc.fxzj.service.ISysMenuService;

import java.util.List;

/**
 * Created by Administrator on 2018/2/3 0003.
 */
@Service("sysMenuService")
public class SysMenuServiceImpl implements ISysMenuService{

    @Autowired
    private SysMenuMapper sysMenuMapper;


    @Override
    public List<SysMenu> getSysMenusByUserId(Long userId) {
        return sysMenuMapper.getSysMenusByUserId(userId);
    }

    @Override
    public List<SysMenu> getAllSysMenus() {
        return sysMenuMapper.getAllSysMenus();
    }

    @Override
    public List<SysMenu> getMenuByRoleId(Long roleId) {
        return sysMenuMapper.getMenuByRoleId(roleId);
    }
}
